package demo04ProxyPattern.JDKDynamicProxy;

/**
 * @author: WangPeng
 * @createTime: 2022/11/09 17:34
 * @description:
 * @version: v1.0
 */
public class Test01 {
    public static void main(String[] args) {
        ProxyFactory proxyFactory = new ProxyFactory(new Haha());
        //获取代理对象
        SuanShu instance = proxyFactory.getInstance();
        instance.add(1,2);
    }
}
